package com.diandi.signature.enums.fdd;

/**
 *  合同信息状态
 * @author mwz
 * @create 2017-08-23 13:11
 * @version V1.0.0

 */
public enum ContractStatus {
    合同信息落库(     "0","合同信息落库"),
    合同签章完成(   "1","合同签章完成"),
    合同签章处理中(   "2","合同签章处理中"),
    合同签章处理失败( "3","合同签章处理失败"),
    ;
    private String type;
    private String typeName;

    ContractStatus(String type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public static ContractStatus getEmun(String type){
        for (ContractStatus checkParamsType : ContractStatus.values()) {
            if(checkParamsType.getType().equals(type)){
                return checkParamsType;
            }
        }
        return null;
    }
}
